#ifndef VCD_TOPBAR_H
#define VCD_TOPBAR_H

#include "../vcd-util.h"

typedef void (*on_clicked_btn_func)(GtkWidget* widget,gpointer priv);

typedef struct vcd_topbar_ctx{
    gboolean is_show_topbar;
    TopbarPostion position;
    gboolean disable_btn_close;
    gboolean disable_btn_reconnect;
    gboolean disable_btn_shutdown;
    gboolean disable_btn_usbredir;
    gulong   parent_winid;

    gpointer priv;
    on_clicked_btn_func on_usb_redir;
    on_clicked_btn_func on_shutdown;
    on_clicked_btn_func on_reconnect;
    on_clicked_btn_func on_fullscreen;
    on_clicked_btn_func on_close;
}VcdTopbarCtx;

GtkWidget*  vcd_topbar_new(VcdTopbarCtx* context);
GtkWidget*  vcd_topbar_get_buttons(VcdTopbarCtx* context);


void vcd_topbar_get_screen_base_size(int* width,int* height);
void vcd_topbar_adapter_spice_size(int w,int h,int* nw,int* nh);

#endif // VCD_TOPBAR_H
